package com.hua.springCloud;

import com.hua.MyIrule.MyRibbon;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//name：表示改负载均衡作用于注册中心的哪个服务上，后面的则是你的配置类
@RibbonClient(name = "CLOUD-PAYMENT-SERVICE", configuration = MyRibbon.class)
public class Consumer {
    public static void main(String[] args) {
        SpringApplication.run(Consumer.class,args);
    }
}
